﻿using ProTrack.Entity;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace ProTrack.IServices.Works
{
    public  interface IWorkstationServices
    {
        public Task<IEnumerable<Workstation>> GetAllAsync();

        public Task<IEnumerable<Workstation>> GetAsync(int PageIndex,int PageSize, string WorkstationCode,string WorkstationName,string WorkshopId, string ProcessId);

        public Task<int> GetCountAsync(string WorkstationCode, string WorkstationName,string WorkshopId, string ProcessId);

        public Task<IEnumerable<WorkstationMachine>> GetWorkstationbyIdAsync(string WorkstationId);
        public Task<bool>AddAsync(Workstation model, List<WorkstationMachine> list);

        public Task<bool>UpdateAsync(Workstation model, List<WorkstationMachine> list);
        public Task<bool> DeleteAsync(int[] Ids);
        public Task<bool>DeleteAsync(int Id);



    }
}
